package com.sys.common.config;

import org.apache.shiro.subject.Subject;
import org.apache.shiro.subject.SubjectContext;
import org.apache.shiro.web.mgt.DefaultWebSubjectFactory;

/**
 * 功能
 *
 * @author zjf
 * @date 2021/04/01
 */
public class JwtDefaultSubjectFactory extends DefaultWebSubjectFactory {

    //关闭Session
    @Override
    public Subject createSubject(SubjectContext context) {
        context.setSessionCreationEnabled(false);
        return super.createSubject(context);
    }
}
